package au.com.iglootech.winerymap.entity.dto;

import java.io.Serializable;
import java.util.Date;

import au.com.iglootech.winerymap.entity.WineryNews;

/**
 * 
 * @author Nicholas Zhu
 * 
 */
public class WineryNewsDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2698669760649477812L;
	private Date date;
	private String title;
	private String content;
	private Integer priority;
	private String keyValue;

	public WineryNewsDTO(final WineryNews news) {
		super();
		this.date = news.getDate();
		this.title = news.getTitle();
		this.content = news.getContent();
		this.priority = news.getPriority();
		this.keyValue = news.getKeyValue();
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(final Date date) {
		this.date = date;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(final String title) {
		this.title = title;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(final String content) {
		this.content = content;
	}

	/**
	 * @return the priority
	 */
	public Integer getPriority() {
		return priority;
	}

	/**
	 * @param priority
	 *            the priority to set
	 */
	public void setPriority(final Integer priority) {
		this.priority = priority;
	}

	/**
	 * @return the keyValue
	 */
	public String getKeyValue() {
		return keyValue;
	}

	/**
	 * @param keyValue
	 *            the keyValue to set
	 */
	public void setKeyValue(final String keyValue) {
		this.keyValue = keyValue;
	}

}
